<form class="form-horizontal form-hint" name="form">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="cancel()">&times;</button>
        <h4 class="modal-title">{{operation}}</h4>
    </div>

    <div class="modal-body">

        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px; width: calc(99.99% * 3/12 - 20px);">构建名称</span>
            <md-input-container md-no-float class="md-block"  flex-gt-sm >
                <input required name="buildName" ng-model="buildName" disabled>
                <!--<div ng-messages="form.buildName.$error">-->
                    <!--<div ng-message="required">请输入构建名称!</div>-->
                    <!--<div ng-message="pattern">构建名不合法!</div>-->
                <!--</div>-->
            </md-input-container>

        </div>
        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px; width: calc(99.99% * 3/12 - 20px); ">dockerfile目录</span>
            <md-input-container md-no-float class="md-block" flex-gt-sm >
                <input name="buildContext" placeholder="Dockerfile在工程中路径" ng-model="buildContext">
                <!--<div class="hint">dockerfile在工程中相对路径</div>-->
            </md-input-container>
        </div>
        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px;width: calc(99.99% * 3/12 - 20px); ">源码库类型</span>
            <md-radio-group ng-model="type"  layout="row" ng-model="layout" layout-wrap style="margin-bottom: 18px;">
                <md-radio-button value="git" class="md-primary" >Git</md-radio-button>
                <md-radio-button value="svn" class="md-primary" > Svn </md-radio-button>

            </md-radio-group>
        </div>

        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px;width: calc(99.99% * 3/12 - 20px); ">源码库地址</span>
            <md-input-container md-no-float class="md-block"  flex-gt-sm >
                <input placeholder="Git or Svn Address" ng-model="gitPath">
            </md-input-container>
        </div>
        <!--<div layout-gt-sm="row"><div>-->
            <!--<span style="float: left;padding-right: 62px;">持续集成</span>-->
            <!--<input style="float: left;" type="checkbox" class="iswitch-lg iswitch-info" ng-model="isCI"></div>-->
            <!--<span class="hint" style="float: left;position:initial;padding-top: 10px;padding-left: 10px">*持续集成是可以让产品在快速迭代的同时保持高质量的软件开发实践</span>-->
        <!--</div>-->

        <div class="form-group-separator"></div>


        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px;width: calc(99.99% * 3/12 - 20px); ">账号</span>
            <md-input-container md-no-float class="md-block" flex-gt-sm>
                <input placeholder="Username" ng-model="username">
            </md-input-container>
        </div>

        <div layout-gt-sm="row" >
            <span style="align-self: center; margin-bottom: 18px;width: calc(99.99% * 3/12 - 20px); ">密码</span>
            <md-input-container md-no-float class="md-block" flex-gt-sm>
                <input placeholder="Password" type="password" ng-model="password">
            </md-input-container>
        </div>

        <div class="hint" style="position:initial;">*如有需要账号密码才能拉取code的请输入</div>
        <div class="hint" style="position:initial;">*git协议的地址暂不支持通过账号密码提取代码</div>

    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-white" data-dismiss="modal" ng-click="cancel()">取 消</button>
        <button type="button" class="btn btn-info" ng-click="ok()">确 定</button>
    </div>
</form>

